#include <stdio.h>
#include <assert.h>

int my_strcmp(const char*a,const char*b)
{
	assert(a != NULL);
	assert(b != NULL);
	while (*a == *b)
	{
		if (*a == '\0')
			return 0;
		*a++;
		*b++;
	}

	return *a - *b;
}

int main()
{
	char a[10] = "abcd";
	char b[10] = "abcd";
	printf("%d\n", my_strcmp(a, b));
	return 0;
}